from bottle import Bottle, route, response, request, run as wwwrun
from time import sleep
from db import DB

class WWW:
    def __init__(self):
        self.db = DB()
        pass

    def run(self):
        db = self.db
        print('running www')
        @route('/')
        def index():
            return 'hello world'
        wwwrun(host='localhost', port=8080, debug=True)

        print('done running www')
        pass